/**
 * 招采管理模块 http 请求
 */
import http from '@/utils/request'

export const gainBillNo = (data) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseApplyForm/gainBillNo', data)
}

export const add = (data) => {
  return http.post('/api/erp/purchase/procurement/erpPurchaseApplyForm/add', data)
}

export const edit = (data) => {
  return http.put('/api/erp/purchase/procurement/erpPurchaseApplyForm/edit', data)
}

export const info = (data) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseApplyForm/queryById', data)
}

export const queryProvisionBroadList = (data) => {
  return http.get('/api/erp/purchase/material/erpMaterialCategory/queryAllParent', data)
}

// 查询物料明细子表
export const erpPurchaseApplyFormDetailAllList = (data) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseApplyFormDetail/allList', data)
}
